import request from '@/utils/request';

// 获取交易列表
export function getTransactionList(params) {
  return request({
    url: '/api/transaction/list',
    method: 'get',
    params
  });
}

// 获取交易详情
export function getTransactionDetail(tradeNo) {
  return request({
    url: `/api/transaction/detail/${tradeNo}`,
    method: 'get'
  });
}
